package com.jiyun.feign;

import com.jiyun.model.day07.Cataloges;
import com.jiyun.vo.Result;
import com.jiyun.vo.day07.CatalogDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author mtt
 * @Date 2023/8/25 19：14
 **/
@FeignClient("day05-catalog")
public interface FeignCatalog {
    @RequestMapping("/catalog/findAll2")
    public List<Cataloges> findAll2(@RequestBody CatalogDto dto);

    @RequestMapping("/catalog/updateCatalog")
    public Result updateCatalog(@RequestBody CatalogDto dto);

    @RequestMapping("/catalog/addCataloges/{id}")
    public void addCataloges(@PathVariable("id") String id);
}
